package com.yuan.sys.modular.driver.enums;

import com.yuan.core.annotion.ExpEnumType;
import com.yuan.core.exception.enums.abs.AbstractBaseExceptionEnum;
import com.yuan.sys.core.consts.SysExpEnumConstant;
import lombok.Getter;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2021年10月22日 11:22
 */
@Getter
@ExpEnumType(module = SysExpEnumConstant.SNOWY_SYS_MODULE_EXP_CODE, kind = SysExpEnumConstant.SYS_DRIVER_EXCEPTION_ENUM)
public enum SysDriverExceptionEnum implements AbstractBaseExceptionEnum {


    DRIVER_NOT_EXIST(1, "驾驶员不存在"),
    DRIVER_ID_CARD_REPEAT(2, "身份证重复"),
    DRIVER_CODE_REPEAT(2, "工号重复");

    private final Integer code;

    private final String message;

    SysDriverExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
